import {HashRouter, Routes, Route} from "react-router-dom";
import './App.css';

// 导入公共框架
import Framework from "./components/Framework"
// 导入模块组件
import User from "./pages/User"
import Goods from "./pages/Goods"
// 导入页面级组件
import AdminLogin from "./pages/Account/Login"
import AdminRegister from "./pages/Account/Register"

function App() {
    return (
        <HashRouter>
            <Routes>
                <Route element={<Framework/>}>
                    <Route path="/user/*" element={<User/>}></Route>
                    <Route path="/goods/*" element={<Goods/>}></Route>
                </Route>
                <Route path='/register' element={<AdminRegister/>}></Route>
                <Route path='/login' element={<AdminLogin/>}></Route>
                <Route path='/' element={<AdminLogin/>}></Route>
            </Routes>
        </HashRouter>
    );
}

export default App;
